//
//  Header.h
//  Map
//
//  Created by 吴超鹏 on 16/5/23.
//  Copyright © 2016年 wcp. All rights reserved.
//

#ifndef Header_h
#define Header_h


#endif /* Header_h */
#define kUserDefaultsCookie @"cookies"

#define realValue(value)          ((value)/375.0f*[UIScreen mainScreen].bounds.size.width)

#define mainHeight      [[UIScreen mainScreen] bounds].size.height
#define mainWidth       [[UIScreen mainScreen] bounds].size.width

#define RATIO           mainWidth / 320.0f

#define mainColorSixTh              0X00a8ff
#define mainColor                   UIColorFromRGB(mainColorSixTh)
//#define buttonPressedColor           [UIColor hexFloatColor:@"51c4ff"]
//#define MoneyColor                  [UIColor hexFloatColor:@"FFA200"]
#define BG_COLOR                    UIColorFromRGB(0Xf8f8f8)
//
//#define GRAY_LIGHT                  [UIColor hexFloatColor:@"dedede"]
//
//// color
//#define TITLE_BLACK_LIGHT     [UIColor hexFloatColor:@"333333"] // eg:商品名称
//#define TITLE_GRAY_DEEP     [UIColor hexFloatColor:@"666666"] // eg:房产抵押贷款
//#define TITLE_GRAY_COLOR    [UIColor hexFloatColor:@"999999"] // eg:灰色
//#define TITLE_GRAY_LIGHT    [UIColor hexFloatColor:@"aaaaaa"] // eg:年化利率
//#define TITLE_WHITE         [UIColor hexFloatColor:@"ffffff"] // eg:首页
//#define LINE_COLOR          [UIColor hexFloatColor:@"e6e5e4"] // eg:下划线浅灰色
//#define TITLE_BLUE          [UIColor hexFloatColor:@"1cade5"] // eg:注册按钮背景颜色
//#define TITLE_YELLOW        [UIColor hexFloatColor:@"f9ea17"] // eg:捐款记录
//#define TITLE_RED        [UIColor hexFloatColor:@"ff684a"] // eg:去结算
//#define TITLE_ORANGE        [UIColor hexFloatColor:@"ff874b"] // eg:删除
//#define TITLE_DEEP_RED        [UIColor hexFloatColor:@"ff4a4a"] // eg:加入购物车
//#define TITLE_EMPTY_BG        [UIColor hexFloatColor:@"f2f2f2"] // eg:空视图

// font size
#define TITLE_Font_34       [UIFont systemFontOfSize:34.0]
#define TITLE_Font_30       [UIFont systemFontOfSize:30.0]
#define TITLE_MOST_BIG      [UIFont systemFontOfSize:24.0]
#define TITLE_Font_20       [UIFont systemFontOfSize:20.0]
#define TITLE_SUPER_BIG     [UIFont systemFontOfSize:18.0]
#define TITLE_NMB_BIG       [UIFont systemFontOfSize:16.0]
#define TITLE_Font_15       [UIFont systemFontOfSize:15.0]
#define TITLE_BIG           [UIFont systemFontOfSize:14.0]
#define TITLE_Font_13       [UIFont systemFontOfSize:13.0]
#define TITLE_MIDDLE        [UIFont systemFontOfSize:12.0]
#define TITLE_Font_11       [UIFont systemFontOfSize:11.0]
#define TITLE_SMALL         [UIFont systemFontOfSize:10.0]

#define SYS_FONT(x)         [UIFont systemFontOfSize:x]
#define BOLD_FONT(x)        [UIFont boldSystemFontOfSize:x]
#define IMAGE_NAMED(x)      [UIImage imageNamed:x]


#define UIColorFromRGB(rgbValue) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
